//
//  OrderEmptyCell.m
//  Peso Guide
//
//  Created by macbook on 2025/6/11.
//

#import "OrderEmptyCell.h"

@interface OrderEmptyCell ()

@property (nonatomic, strong) UIView *backView;
@property (nonatomic, strong) UIImageView *iconImg;
@property (nonatomic, strong) UILabel *titLabel;

@end

@implementation OrderEmptyCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        _backView = [PesoKit createViewWithFrame:CGRectMake(0, 0, KScreenWidth, KScreenHeight-kStarBarHeight-kTabbarHeight-155) backGroundColor:ColorHex(@"#FFFFFF")];
        [self.contentView addSubview:_backView];
        
        _iconImg = [PesoKit createImageViewWithFrame:CGRectMake((KScreenWidth-205)/2.0, (_backView.height-86)/2.0-10, 205, 86) imageNamed:@"ic_order_empty"];
        [_backView addSubview:_iconImg];
        
        _titLabel = [PesoKit createLabelWithFrame:CGRectMake(20, _iconImg.bottom+23, KScreenWidth-40, 20) backGroundColor:[UIColor whiteColor] text:[Lang set:@"You don’t have an order yet"] textColor:ColorHex(@"#999999") font:FONT(FontWeightStyleRegular, 14)];
        _titLabel.textAlignment = NSTextAlignmentCenter;
        [_backView addSubview:_titLabel];
    }
    return self;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
